package com.dh.project.model.push;

import java.util.List;

/**
 * Created by Mc on 2016/10/12.
 */
public class PushAlias {


    public String platform;
    public AudienceBean audience;
    public NotificationBean notification;
    public OptionsBean options;

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public AudienceBean getAudience() {
        return audience;
    }

    public void setAudience(AudienceBean audience) {
        this.audience = audience;
    }

    public NotificationBean getNotification() {
        return notification;
    }

    public void setNotification(NotificationBean notification) {
        this.notification = notification;
    }


    public OptionsBean getOptions() {
        return options;
    }

    public void setOptions(OptionsBean options) {
        this.options = options;
    }



    /**
     * @param audience
     * @param notification
     * @param msg
     * @param type         1android 2ios
     */
    public PushAlias(List<String> audience, String notification, Object msg, int type) {
        this.platform = "all";
        this.audience = new AudienceBean(audience);
        if(type==2){
            this.options = new OptionsBean();
        }
        this.notification = new NotificationBean(notification, msg, type);

    }
}
